import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/widgets.dart';
import 'package:school_safe_teacher/Home/page.dart';
import 'package:school_safe_teacher/me/page.dart';

class IndexState implements Cloneable<IndexState> {
  List<Widget> widgetList;
  int select;

  @override
  IndexState clone() {
    return IndexState()
      ..widgetList = widgetList
      ..select = select;
  }
}

IndexState initState(Map<String, dynamic> args) {
  return IndexState()
    ..widgetList = [HomePagePage().buildPage(null), MePage().buildPage(null)]
    ..select = 0;
}
